package org.example.lock;

import java.util.List;
import java.util.concurrent.TimeoutException;

/**
 * @Title : bb
 * @Description: :
 * @author: libo@juzishuke.com
 * @date: 2023/10/25 16:08
 * @Version:1.0
 */
public interface Lock
{

    void lock() throws InterruptedException;

    void lock(long mills) throws InterruptedException, TimeoutException;

    void unlock();

    List<Thread> getBlockedThreads();
}
